home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14536 < prev    next >
Encoding:
Text File  |  1996-08-05  |  504 b   |  24 lines

  1. Path: arapaho.cse.ucsc.edu!ray
  2. From: ray@cse.ucsc.edu (Ray Swartz)
  3. Newsgroups: comp.lang.c++
  4. Subject: template arg for template function?
  5. Date: 31 Mar 1996 23:00:33 GMT
  6. Organization: UC Santa Cruz CIS/CE
  7. Message-ID: <4jn2qh$3nv@darkstar.UCSC.EDU>
  8. NNTP-Posting-Host: arapaho.cse.ucsc.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Can a template function take a template argument?
  12.  
  13. example:
  14.  
  15. template <class T>
  16. bool dup(List<T> l, T dupTest)
  17. { ... }
  18.  
  19.  
  20. When I did this on my BC4.5 compiler I got an error.
  21.  
  22. Ray
  23.  
  24.